package service.impl;


import mapper.LoginMapper;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import po.Staff;
import service.LoginService;
@Transactional(propagation=Propagation.REQUIRED,isolation=Isolation.DEFAULT,timeout=5)
@Service
public class LoginServiceImpl implements LoginService{
	@Autowired
	LoginMapper loginmapper;	
	

	// 查询用户的密码 ,其实还不如保持用户的信息 
	@Override
	public Staff getpwdbyname(String name, String pwd) {
		// TODO Auto-generated method stub
		Staff staff=loginmapper.getpwdbyname(name,pwd);
		return staff;
	}

}
